﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jage.Common
{
    public abstract class Singleton<T>
        where T : class, new()
    {

        static private T _instance;
        static public T Instance
        {
            get
            {
                if (_instance == null) _instance = new T();
                return _instance;
            }
        }

    }
}
